<?php


namespace App\Tool;


class PayStatus
{


    /**
     * Create by Peter
     * 2019/12/20 13:47:17
     * Email:904801074@qq.com
     * @param $status
     * @throws \Exception
     */
    static function throwError($status){

        switch ($status){

            case '11':

                throw new \Exception('订单已支付，请勿重复支付');

                break;

            case '22':

                throw new \Exception('订单已取消，请勿支付！');

                break;


        }

    }

}
